package com.controller;


import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.common.utils.Result;
import com.entity.SharesDataProbRed;
import com.service.SharesDataProbRedService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 股票
 */
@CrossOrigin(allowCredentials = "true", allowedHeaders = "*")
@RestController
@RequestMapping("/share")
public class SharesController {

    
    @Autowired
    private SharesDataProbRedService sharesDataProbRedService;

    /**
     * 根据条件查询概率
     */
    @RequestMapping("/getProbByTrend")
    public Result getProbByTrend(@RequestBody SharesDataProbRed sharesDataProbRed){

        Page<SharesDataProbRed> sharesDataProbRedPage= sharesDataProbRedService.getProbByTrend(sharesDataProbRed);

        return  Result.success(sharesDataProbRedPage);
    }

}
